/*
 * An XML document type.
 * Localname: FahrenheitToCelsiusResponse
 * Namespace: http://tempuri.org/
 * Java type: org.tempuri.FahrenheitToCelsiusResponseDocument
 *
 * Automatically generated - do not modify.
 */
package org.tempuri.impl;
/**
 * A document containing one FahrenheitToCelsiusResponse(@http://tempuri.org/) element.
 *
 * This is a complex type.
 */
public class FahrenheitToCelsiusResponseDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.tempuri.FahrenheitToCelsiusResponseDocument
{
    
    public FahrenheitToCelsiusResponseDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName FAHRENHEITTOCELSIUSRESPONSE$0 = 
        new javax.xml.namespace.QName("http://tempuri.org/", "FahrenheitToCelsiusResponse");
    
    
    /**
     * Gets the "FahrenheitToCelsiusResponse" element
     */
    public org.tempuri.FahrenheitToCelsiusResponseDocument.FahrenheitToCelsiusResponse getFahrenheitToCelsiusResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.tempuri.FahrenheitToCelsiusResponseDocument.FahrenheitToCelsiusResponse target = null;
            target = (org.tempuri.FahrenheitToCelsiusResponseDocument.FahrenheitToCelsiusResponse)get_store().find_element_user(FAHRENHEITTOCELSIUSRESPONSE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "FahrenheitToCelsiusResponse" element
     */
    public void setFahrenheitToCelsiusResponse(org.tempuri.FahrenheitToCelsiusResponseDocument.FahrenheitToCelsiusResponse fahrenheitToCelsiusResponse)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.tempuri.FahrenheitToCelsiusResponseDocument.FahrenheitToCelsiusResponse target = null;
            target = (org.tempuri.FahrenheitToCelsiusResponseDocument.FahrenheitToCelsiusResponse)get_store().find_element_user(FAHRENHEITTOCELSIUSRESPONSE$0, 0);
            if (target == null)
            {
                target = (org.tempuri.FahrenheitToCelsiusResponseDocument.FahrenheitToCelsiusResponse)get_store().add_element_user(FAHRENHEITTOCELSIUSRESPONSE$0);
            }
            target.set(fahrenheitToCelsiusResponse);
        }
    }
    
    /**
     * Appends and returns a new empty "FahrenheitToCelsiusResponse" element
     */
    public org.tempuri.FahrenheitToCelsiusResponseDocument.FahrenheitToCelsiusResponse addNewFahrenheitToCelsiusResponse()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.tempuri.FahrenheitToCelsiusResponseDocument.FahrenheitToCelsiusResponse target = null;
            target = (org.tempuri.FahrenheitToCelsiusResponseDocument.FahrenheitToCelsiusResponse)get_store().add_element_user(FAHRENHEITTOCELSIUSRESPONSE$0);
            return target;
        }
    }
    /**
     * An XML FahrenheitToCelsiusResponse(@http://tempuri.org/).
     *
     * This is a complex type.
     */
    public static class FahrenheitToCelsiusResponseImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.tempuri.FahrenheitToCelsiusResponseDocument.FahrenheitToCelsiusResponse
    {
        
        public FahrenheitToCelsiusResponseImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName FAHRENHEITTOCELSIUSRESULT$0 = 
            new javax.xml.namespace.QName("http://tempuri.org/", "FahrenheitToCelsiusResult");
        
        
        /**
         * Gets the "FahrenheitToCelsiusResult" element
         */
        public java.lang.String getFahrenheitToCelsiusResult()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FAHRENHEITTOCELSIUSRESULT$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "FahrenheitToCelsiusResult" element
         */
        public org.apache.xmlbeans.XmlString xgetFahrenheitToCelsiusResult()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FAHRENHEITTOCELSIUSRESULT$0, 0);
                return target;
            }
        }
        
        /**
         * True if has "FahrenheitToCelsiusResult" element
         */
        public boolean isSetFahrenheitToCelsiusResult()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(FAHRENHEITTOCELSIUSRESULT$0) != 0;
            }
        }
        
        /**
         * Sets the "FahrenheitToCelsiusResult" element
         */
        public void setFahrenheitToCelsiusResult(java.lang.String fahrenheitToCelsiusResult)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FAHRENHEITTOCELSIUSRESULT$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FAHRENHEITTOCELSIUSRESULT$0);
                }
                target.setStringValue(fahrenheitToCelsiusResult);
            }
        }
        
        /**
         * Sets (as xml) the "FahrenheitToCelsiusResult" element
         */
        public void xsetFahrenheitToCelsiusResult(org.apache.xmlbeans.XmlString fahrenheitToCelsiusResult)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FAHRENHEITTOCELSIUSRESULT$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FAHRENHEITTOCELSIUSRESULT$0);
                }
                target.set(fahrenheitToCelsiusResult);
            }
        }
        
        /**
         * Unsets the "FahrenheitToCelsiusResult" element
         */
        public void unsetFahrenheitToCelsiusResult()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(FAHRENHEITTOCELSIUSRESULT$0, 0);
            }
        }
    }
}
